
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>4.1 uni-app x 跨平台实战入门：从 0 到 1 开发 HarmonyOS 5 鸿蒙原生应用 · uniapp/uniapp-x for Harmony教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="坚果派">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mind-maps/mindmaps.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-ace/ace.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"ITmxs/gitbook","types":["star","watch","fork"],"size":"small"};
    </script>

    </head>
    <body>
         
<div class="donate-modal modal">
  <div class="modal-header">
    <div>
      <span>
        <img
          id="modal-avatar"
          class="modal-avatar"
          src="http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"
        />
      </span>
      <span id="nickname"> breeze </span>
      <p class="modal-close close" onclick="closeDonateModal()">×</p>
    </div>
    <div class="message">
      <div class="tip">
        <i></i>
        <span>随意打赏，但不要超过一顿早餐钱 💕</span>
      </div>
    </div>
  </div>
  <div class="modal-content">
    <div class="modal-pay-way">
      <div id="wxpay" onclick="showDonateImg(0)">
        <input
          type="radio"
          name="pay-way"
          value="wxpay"
          class="zs-type"
          checked="checked"
        />
        <span>
          <img
            id="wxpay-logo"
            src=""
          />
        </span>
      </div>
      <div id="alipay" onclick="showDonateImg(1)">
        <input type="radio" name="pay-way" value="alipay" class="zs-type" />
        <span>
          <img
            id="alipay-logo"
            src=""
          />
        </span>
      </div>
    </div>
    <div class="modal-pay-qrcode">
      <img id="wxpay-code" src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png" />
      <img
        id="alipay-code"
        src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png"
        hidden
      />
    </div>
  </div>
</div>
<div class="mask"></div>


<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://www.nutpi.net/" target="_blank">坚果派官网</a>
      </li><li>
        <a href="https://www.arkui.club/" target="_blank">ArkUI实战</a>
      </li><li>
        <a href="https://space.bilibili.com/480883651" target="_blank">元服务开发实践</a>
      </li><li>
        <a href="https://gitcode.com/nutpi" target="_blank">OpenHarmony应用开发</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    1.前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter2/1.为什么.html">
            
                <a href="../chapter2/1.为什么.html">
            
                    
                    2.为什么要这个专栏？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    3.uniapp开发鸿蒙
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../chapter3/14.背景.md">
            
                <span>
            
                    
                    3.1背景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../chapter3/15.优势.html">
            
                <a href="../chapter3/15.优势.html">
            
                    
                    3.2优势
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../chapter3/1.uniapp开发鸿蒙应用.html">
            
                <a href="../chapter3/1.uniapp开发鸿蒙应用.html">
            
                    
                    3.3uniapp开发鸿蒙应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../chapter3/3.uniapp之uts语言.html">
            
                <a href="../chapter3/3.uniapp之uts语言.html">
            
                    
                    3.4uniapp之uts语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../chapter3/4.uniapp for Harmony.html">
            
                <a href="../chapter3/4.uniapp for Harmony.html">
            
                    
                    3.5uniapp for Harmony
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../chapter3/5.uniapp for Harmony FAQ.html">
            
                <a href="../chapter3/5.uniapp for Harmony FAQ.html">
            
                    
                    3.6uniapp for Harmony FAQ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../chapter3/2.uniapp2.html">
            
                <a href="../chapter3/2.uniapp2.html">
            
                    
                    3.7uniapp2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../chapter3/6.uniappx支持鸿蒙.html">
            
                <a href="../chapter3/6.uniappx支持鸿蒙.html">
            
                    
                    3.8uniappx支持鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../chapter3/7.uniapp-x支持鸿蒙.html">
            
                <a href="../chapter3/7.uniapp-x支持鸿蒙.html">
            
                    
                    3.9uniapp-x支持鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../chapter3/8.目前支持鸿蒙手机.html">
            
                <a href="../chapter3/8.目前支持鸿蒙手机.html">
            
                    
                    3.10目前支持鸿蒙手机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="../chapter3/9.uniapp-x项目开发鸿蒙支持调试啦.html">
            
                <a href="../chapter3/9.uniapp-x项目开发鸿蒙支持调试啦.html">
            
                    
                    3.11uniapp-x项目开发鸿蒙支持调试啦
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="../chapter3/10.uniapp和flutter你会选哪个来开发鸿蒙.html">
            
                <a href="../chapter3/10.uniapp和flutter你会选哪个来开发鸿蒙.html">
            
                    
                    3.12uniapp和flutter你会选哪个来开发鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13" data-path="../chapter3/11.Flutter与uni-app的深度对比：鸿蒙开发的最佳选择竟是原生开发.md.md">
            
                <span>
            
                    
                    3.13Flutter与uni-app的深度对比：鸿蒙开发的最佳选择竟是原生开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14" data-path="../chapter3/12.uniapp版本更新.html">
            
                <a href="../chapter3/12.uniapp版本更新.html">
            
                    
                    3.14uniapp版本更新
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.15" data-path="../chapter3/13.HBuilderX 4.62 开始，uni-app 支持嵌入鸿蒙原生组件.html">
            
                <a href="../chapter3/13.HBuilderX 4.62 开始，uni-app 支持嵌入鸿蒙原生组件.html">
            
                    
                    3.15HBuilderX 4.62开始，uni-app支持嵌入鸿蒙原生组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.16" data-path="../chapter3/16.uni-app x 已经完成鸿蒙等主流平台全覆盖.html">
            
                <a href="../chapter3/16.uni-app x 已经完成鸿蒙等主流平台全覆盖.html">
            
                    
                    3.16uni-app x 已经完成鸿蒙等主流平台全覆盖
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.17" data-path="../chapter3/17.uniapp如何进行条件编译到鸿蒙.html">
            
                <a href="../chapter3/17.uniapp如何进行条件编译到鸿蒙.html">
            
                    
                    3.17uniapp如何进行条件编译到鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.18" data-path="../chapter3/18.鸿蒙Next案例分析.html">
            
                <a href="../chapter3/18.鸿蒙Next案例分析.html">
            
                    
                    3.18鸿蒙Next案例分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.19" data-path="../chapter3/19.UTS开发鸿蒙插件.md">
            
                <span>
            
                    
                    3.19UTS开发鸿蒙插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.20" data-path="../chapter3/20.热重载.html">
            
                <a href="../chapter3/20.热重载.html">
            
                    
                    3.20热重载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.21" data-path="../chapter3/21.调用鸿蒙原生组件.html">
            
                <a href="../chapter3/21.调用鸿蒙原生组件.html">
            
                    
                    3.21调用鸿蒙原生组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.22" data-path="../chapter3/22.从开发者视角看 uniapp 与 Flutter 的差异.html">
            
                <a href="../chapter3/22.从开发者视角看 uniapp 与 Flutter 的差异.html">
            
                    
                    3.22从开发者视角看 uniapp 与 Flutter 的差异
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.23" data-path="../chapter3/23.uniappforHarmony学习路线.html">
            
                <a href="../chapter3/23.uniappforHarmony学习路线.html">
            
                    
                    3.23uniappforHarmony学习路线
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    4.随机笑话-实战案例
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.4.1" data-path="1.uni-app_x跨平台实战入门：从0到1开发HarmonyOS_5鸿蒙原生应用.html">
            
                <a href="1.uni-app_x跨平台实战入门：从0到1开发HarmonyOS_5鸿蒙原生应用.html">
            
                    
                    4.1 uni-app x 跨平台实战入门：从 0 到 1 开发 HarmonyOS 5 鸿蒙原生应用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    5.二十四节气
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" >
            
                <span>
            
                    
                    5.1二十四节气实战案例
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    6.UTS插件开发
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../chapter6/1.UTS开发鸿蒙插件.html">
            
                <a href="../chapter6/1.UTS开发鸿蒙插件.html">
            
                    
                    6.1 UTS开发鸿蒙插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../chapter6/2.开发uts插件.html">
            
                <a href="../chapter6/2.开发uts插件.html">
            
                    
                    6.2 开发uts插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../chapter6/3.新建鸿蒙插件.html">
            
                <a href="../chapter6/3.新建鸿蒙插件.html">
            
                    
                    6.3 新建鸿蒙插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../chapter6/4.鸿蒙使用插件.md">
            
                <span>
            
                    
                    6.4 鸿蒙使用插件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    7.鸿蒙插件实战
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../chapter7/1.开发鸿蒙插件.html">
            
                <a href="../chapter7/1.开发鸿蒙插件.html">
            
                    
                    7.1 开发鸿蒙插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../chapter7/2.uniappx插件nutpi-idcard 开发与使用指南（适配鸿蒙）.html">
            
                <a href="../chapter7/2.uniappx插件nutpi-idcard 开发与使用指南（适配鸿蒙）.html">
            
                    
                    7.2 uniappx插件nutpi-idcard开发与使用指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../chapter7/3.chinese-number-format插件.html">
            
                <a href="../chapter7/3.chinese-number-format插件.html">
            
                    
                    7.3 chinese-number-format插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../chapter7/4.calendar插件.html">
            
                <a href="../chapter7/4.calendar插件.html">
            
                    
                    7.4 calendar插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../chapter7/5.HBuilderX 中适配鸿蒙插件的安装使用指南.html">
            
                <a href="../chapter7/5.HBuilderX 中适配鸿蒙插件的安装使用指南.html">
            
                    
                    7.5 HBuilderX中适配鸿蒙插件的安装使用指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../chapter7/OpenHarmony5.0跟华为HarmonyOS之间的应用生态兼容情况.html">
            
                <a href="../chapter7/OpenHarmony5.0跟华为HarmonyOS之间的应用生态兼容情况.html">
            
                    
                    7.6 OpenHarmony与HarmonyOS兼容性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >4.1 uni-app x 跨平台实战入门：从 0 到 1 开发 HarmonyOS 5 鸿蒙原生应用</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             
                <div id="vip-container">
                    <h1 id="uni-app-x-&#x8DE8;&#x5E73;&#x53F0;&#x5B9E;&#x6218;&#x5165;&#x95E8;&#xFF1A;&#x4ECE;-0-&#x5230;-1-&#x5F00;&#x53D1;-harmonyos-5-&#x9E3F;&#x8499;&#x539F;&#x751F;&#x5E94;&#x7528;"><a name="uni-app-x-&#x8DE8;&#x5E73;&#x53F0;&#x5B9E;&#x6218;&#x5165;&#x95E8;&#xFF1A;&#x4ECE;-0-&#x5230;-1-&#x5F00;&#x53D1;-harmonyos-5-&#x9E3F;&#x8499;&#x539F;&#x751F;&#x5E94;&#x7528;" class="plugin-anchor" href="#uni-app-x-&#x8DE8;&#x5E73;&#x53F0;&#x5B9E;&#x6218;&#x5165;&#x95E8;&#xFF1A;&#x4ECE;-0-&#x5230;-1-&#x5F00;&#x53D1;-harmonyos-5-&#x9E3F;&#x8499;&#x539F;&#x751F;&#x5E94;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>uni-app x &#x8DE8;&#x5E73;&#x53F0;&#x5B9E;&#x6218;&#x5165;&#x95E8;&#xFF1A;&#x4ECE; 0 &#x5230; 1 &#x5F00;&#x53D1; HarmonyOS 5 &#x9E3F;&#x8499;&#x539F;&#x751F;&#x5E94;&#x7528;</h1>
<h2 id="&#x8BFE;&#x7A0B;&#x4ECB;&#x7ECD;"><a name="&#x8BFE;&#x7A0B;&#x4ECB;&#x7ECD;" class="plugin-anchor" href="#&#x8BFE;&#x7A0B;&#x4ECB;&#x7ECD;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8BFE;&#x7A0B;&#x4ECB;&#x7ECD;</h2>
<h3 id="&#x4F60;&#x5C06;&#x6536;&#x83B7;"><a name="&#x4F60;&#x5C06;&#x6536;&#x83B7;" class="plugin-anchor" href="#&#x4F60;&#x5C06;&#x6536;&#x83B7;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F60;&#x5C06;&#x6536;&#x83B7;</h3>
<ul>
<li>uni-app x &#x5F00;&#x53D1;&#x539F;&#x751F;&#x9E3F;&#x8499;&#x6838;&#x5FC3;&#x903B;&#x8F91;</li>
<li>&#x591A;&#x7AEF;&#x754C;&#x9762;&#x9002;&#x914D;&#x601D;&#x7EF4;&#x548C;&#x4EE3;&#x7801;&#x517C;&#x5BB9;&#x5B9E;&#x6218;</li>
<li>&#x4ECE; 0 &#x5230; 1 &#x5165;&#x95E8;&#x5B8C;&#x6210;&#x53EF;&#x4E0A;&#x7EBF;&#x7684;&#x8DE8;&#x5E73;&#x53F0;&#x5E94;&#x7528;</li>
<li>&#x638C;&#x63E1;&#x591A;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x5F00;&#x53D1;&#x80FD;&#x529B;(HarmonyOS Next/Android/iOS/&#x5FAE;&#x4FE1;&#x5C0F;&#x7A0B;&#x5E8F;/Web)</li>
</ul>
<h3 id="&#x9002;&#x7528;&#x4EBA;&#x7FA4;"><a name="&#x9002;&#x7528;&#x4EBA;&#x7FA4;" class="plugin-anchor" href="#&#x9002;&#x7528;&#x4EBA;&#x7FA4;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9002;&#x7528;&#x4EBA;&#x7FA4;</h3>
<ul>
<li>&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x5F00;&#x53D1;&#x5DE5;&#x7A0B;&#x5E08;&#xFF0C;&#x60F3;&#x5207;&#x5165;&#x8DE8;&#x5E73;&#x53F0;&#x9886;&#x57DF;&#xFF1B;</li>
<li>&#x60F3;&#x5B66;&#x4E60;&#x9E3F;&#x8499;&#x3001;&#x5C0F;&#x7A0B;&#x5E8F;&#x5F00;&#x53D1;&#x4F46;&#x7F3A;&#x4E4F;&#x5B9E;&#x6218;&#x6848;&#x4F8B;&#x7684;&#x6280;&#x672F;&#x7231;&#x597D;&#x8005;&#xFF1B;</li>
<li>&#x5DF2;&#x5B66;&#x8FC7; uni-app&#xFF0C;&#x60F3;&#x8981;&#x8FDB;&#x9636;&#x4E0B;&#x4E00;&#x4EE3; uni-app x &#x6280;&#x672F;&#x6808;&#x7684;&#x5C0F;&#x4F19;&#x4F34;&#xFF1B;</li>
<li>&#x60F3;&#x8981;&#x4E00;&#x5957;&#x4EE3;&#x7801;&#xFF0C;&#x540C;&#x65F6;&#x8986;&#x76D6;&#x591A;&#x7AEF;&#x7684;&#x79FB;&#x52A8;&#x7AEF;&#x5F00;&#x53D1;&#x5DE5;&#x7A0B;&#x5E08;&#xFF1B;</li>
<li>&#x9700;&#x5FEB;&#x901F;&#x5F00;&#x53D1;&#x591A;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x4F01;&#x4E1A;&#x5F00;&#x53D1;&#x8005;&#x6216;&#x521B;&#x4E1A;&#x56E2;&#x961F;&#x3002;</li>
</ul>
<h3 id="&#x8BFE;&#x7A0B;&#x7B80;&#x4ECB;"><a name="&#x8BFE;&#x7A0B;&#x7B80;&#x4ECB;" class="plugin-anchor" href="#&#x8BFE;&#x7A0B;&#x7B80;&#x4ECB;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8BFE;&#x7A0B;&#x7B80;&#x4ECB;</h3>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747622671955-2f1e143b-c74d-4623-8b88-acd797415be3.png" alt="&#x5E94;&#x7528;&#x56FE;&#x6807;"></p>
<p>&#x672C;&#x8BFE;&#x7A0B;&#x4EE5;&#x300C;&#x968F;&#x673A;&#x7B11;&#x8BDD;&#x300D;&#x4E3A;&#x5B9E;&#x6218;&#x6848;&#x4F8B;&#xFF0C;&#x5168;&#x9762;&#x89E3;&#x6790;&#x57FA;&#x4E8E; uni-app x &#x7684;&#x8DE8;&#x5E73;&#x53F0;&#x5F00;&#x53D1;&#x6D41;&#x7A0B;&#x3002;&#x901A;&#x8FC7;&#x4ECE;&#x73AF;&#x5883;&#x642D;&#x5EFA;&#x3001;&#x529F;&#x80FD;&#x5F00;&#x53D1;&#x5230;&#x591A;&#x7AEF;&#x9002;&#x914D;&#x7684;&#x5168;&#x94FE;&#x8DEF;&#x5B9E;&#x8DF5;&#xFF0C;&#x5B66;&#x5458;&#x5C06;&#x638C;&#x63E1; uni-app x &#x7684;&#x6838;&#x5FC3;&#x8BED;&#x6CD5;&#x3001;&#x8DE8;&#x5E73;&#x53F0;&#x7EC4;&#x4EF6;&#x8C03;&#x7528;&#x3001;&#x5C4F;&#x5E55;&#x9002;&#x914D;&#x6280;&#x5DE7;&#x53CA;&#x591A;&#x7AEF;&#xFF08;HarmonyOS Next/Android/iOS/&#x5FAE;&#x4FE1;&#x5C0F;&#x7A0B;&#x5E8F;/Web&#xFF09;&#x6253;&#x5305;&#x90E8;&#x7F72;&#x80FD;&#x529B;&#x3002;&#x8BFE;&#x7A0B;&#x7ED3;&#x5408;&#x534E;&#x4E3A;&#x6298;&#x53E0;&#x5C4F;&#x9002;&#x914D;&#x3001;&#x4E91;&#x6253;&#x5305;&#x7B49;&#x771F;&#x5B9E;&#x5F00;&#x53D1;&#x573A;&#x666F;&#xFF0C;&#x4FA7;&#x91CD;&#x5B9E;&#x6218;&#x843D;&#x5730;&#x4E0E;&#x524D;&#x6CBF;&#x6280;&#x672F;&#x8986;&#x76D6;&#xFF0C;&#x52A9;&#x529B;&#x5F00;&#x53D1;&#x8005;&#x5FEB;&#x901F;&#x4E0A;&#x624B;&#x8DE8;&#x5E73;&#x53F0;&#x5E94;&#x7528;&#x5F00;&#x53D1;&#x5E76;&#x79EF;&#x7D2F;&#x9879;&#x76EE;&#x7ECF;&#x9A8C;&#x3002;</p>
<h3 id="&#x8BFE;&#x7A0B;&#x4EAE;&#x70B9;"><a name="&#x8BFE;&#x7A0B;&#x4EAE;&#x70B9;" class="plugin-anchor" href="#&#x8BFE;&#x7A0B;&#x4EAE;&#x70B9;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8BFE;&#x7A0B;&#x4EAE;&#x70B9;</h3>
<ol>
<li><strong>&#x5B9E;&#x6218;&#x9A71;&#x52A8;&#xFF0C;&#x5373;&#x5B66;&#x5373;&#x7528;&#xFF1A;</strong> &#x4EE5;&#x5B8C;&#x6574;&#x5F00;&#x6E90;&#x9879;&#x76EE;&#x4E3A;&#x8F7D;&#x4F53;&#xFF0C;&#x6DB5;&#x76D6;&#x4ECE;&#x9700;&#x6C42;&#x5206;&#x6790;&#x5230;&#x4E0A;&#x7EBF;&#x90E8;&#x7F72;&#x7684;&#x5168;&#x6D41;&#x7A0B;&#xFF0C;&#x907F;&#x514D;&#x7EAF;&#x7406;&#x8BBA;&#x5806;&#x780C;&#xFF0C;&#x4FA7;&#x91CD;&#x4EE3;&#x7801;&#x5B9E;&#x64CD;&#x4E0E;&#x95EE;&#x9898;&#x89E3;&#x51B3;&#xFF08;&#x5982;&#x6298;&#x53E0;&#x5C4F;&#x9002;&#x914D;&#x3001;&#x591A;&#x7AEF;&#x6837;&#x5F0F;&#x517C;&#x5BB9;&#xFF09;&#x3002;</li>
<li><strong>&#x591A;&#x7AEF;&#x9002;&#x914D;&#x6838;&#x5FC3;&#x6280;&#x672F;&#x62C6;&#x89E3;&#xFF1A;</strong> &#x6DF1;&#x5EA6;&#x89E3;&#x6790; uni-app x &#x8DE8;&#x5E73;&#x53F0;&#x539F;&#x7406;&#xFF0C;&#x901A;&#x8FC7;&#x534E;&#x4E3A;&#x6298;&#x53E0;&#x5C4F;&#x9002;&#x914D;&#x3001;&#x9E3F;&#x8499;&#x5E73;&#x53F0;&#x7B7E;&#x540D;&#x914D;&#x7F6E;&#x3001;&#x517C;&#x5BB9;&#x6027;&#x5904;&#x7406;&#x7B49;&#x5B9E;&#x64CD;&#xFF0C;&#x638C;&#x63E1;&#x4E0D;&#x540C;&#x8BBE;&#x5907;&#x4E0E;&#x5E73;&#x53F0;&#x7684;&#x5DEE;&#x5F02;&#x5316;&#x9002;&#x914D;&#x7B56;&#x7565;&#x3002;</li>
<li><strong>&#x524D;&#x6CBF;&#x6280;&#x672F;&#x4E0E;&#x751F;&#x6001;&#x8986;&#x76D6;&#xFF1A;</strong> &#x7ED3;&#x5408;&#x9E3F;&#x8499;&#xFF08;HarmonyOS Next&#xFF09;&#x5F00;&#x53D1;&#x3001;Uni TypeScript &#x8BED;&#x6CD5;&#x3001;SCSS &#x6837;&#x5F0F;&#x9884;&#x5904;&#x7406;&#x7B49;&#x6280;&#x672F;&#xFF0C;&#x9002;&#x914D;&#x5F53;&#x524D;&#x8DE8;&#x5E73;&#x53F0;&#x5F00;&#x53D1;&#x8D8B;&#x52BF;&#x3002;</li>
</ol>
<h3 id="&#x5E73;&#x53F0;&#x517C;&#x5BB9;&#x6027;"><a name="&#x5E73;&#x53F0;&#x517C;&#x5BB9;&#x6027;" class="plugin-anchor" href="#&#x5E73;&#x53F0;&#x517C;&#x5BB9;&#x6027;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5E73;&#x53F0;&#x517C;&#x5BB9;&#x6027;</h3>
<ul>
<li>HarmonyOS NEXT(&#x9E3F;&#x8499;) &#x2705;</li>
<li>Android(&#x5B89;&#x5353;) &#x2705;</li>
<li>iOS(&#x82F9;&#x679C;) &#x2705;</li>
<li>&#x5FAE;&#x4FE1;&#x5C0F;&#x7A0B;&#x5E8F; &#x2705;</li>
<li>Web(&#x6D4F;&#x89C8;&#x5668;) &#x2705;</li>
</ul>
<h3 id="&#x8FD0;&#x884C;&#x6548;&#x679C;"><a name="&#x8FD0;&#x884C;&#x6548;&#x679C;" class="plugin-anchor" href="#&#x8FD0;&#x884C;&#x6548;&#x679C;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8FD0;&#x884C;&#x6548;&#x679C;</h3>
<ul>
<li>iPhone &#x3001;Android&#x3001;&#x9E3F;&#x8499;&#x9614;&#x6298;&#x53E0;(&#x5C55;&#x5F00;)&#x3001;&#x5FAE;&#x4FE1;&#x5C0F;&#x7A0B;&#x5E8F;</li>
</ul>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747622788196-0400b077-0a62-4be5-8809-32c01729d7d3.png" alt="&#x8FD0;&#x884C;&#x6548;&#x679C;1"></p>
<ul>
<li>iPhone &#x3001;Android&#x3001;&#x9E3F;&#x8499;&#x9614;&#x6298;&#x53E0;(&#x6298;&#x53E0;)&#x3001;&#x5FAE;&#x4FE1;&#x5C0F;&#x7A0B;&#x5E8F;</li>
</ul>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747622810188-a95d2692-6fab-4657-9563-e6ca520db4ea.png" alt="&#x8FD0;&#x884C;&#x6548;&#x679C;2"></p>
<h3 id="&#x6280;&#x672F;&#x6808;"><a name="&#x6280;&#x672F;&#x6808;" class="plugin-anchor" href="#&#x6280;&#x672F;&#x6808;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6280;&#x672F;&#x6808;</h3>
<ul>
<li>UniApp X</li>
<li>Uni TypeScript</li>
<li>Vue 3</li>
</ul>
<h3 id="&#x5F00;&#x53D1;&#x5DE5;&#x5177;"><a name="&#x5F00;&#x53D1;&#x5DE5;&#x5177;" class="plugin-anchor" href="#&#x5F00;&#x53D1;&#x5DE5;&#x5177;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5F00;&#x53D1;&#x5DE5;&#x5177;</h3>
<ul>
<li>&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#xFF1A;MacOS 15.4.1</li>
<li>&#x7F16;&#x8F91;&#x5668;&#xFF1A;HBuilder X 4.65</li>
<li>&#x9E3F;&#x8499;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#xFF1A;DevEco Studio 5.0.4 Release</li>
<li>&#x5B89;&#x5353;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#xFF1A;Android Studio (version 2024.2)</li>
<li>&#x82F9;&#x679C;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#xFF1A;Xcode Version 16.1 (16B40)</li>
<li>&#x6D4F;&#x89C8;&#x5668;&#xFF1A;Chrome 135.0.7049.85</li>
</ul>
<h2 id="uni-app-x"><a name="uni-app-x" class="plugin-anchor" href="#uni-app-x"><i class="fa fa-link" aria-hidden="true"></i></a>uni-app x</h2>
<h3 id="uni-app-x-&#x7B80;&#x4ECB;"><a name="uni-app-x-&#x7B80;&#x4ECB;" class="plugin-anchor" href="#uni-app-x-&#x7B80;&#x4ECB;"><i class="fa fa-link" aria-hidden="true"></i></a>uni-app x &#x7B80;&#x4ECB;</h3>
<p>uni-app x&#xFF0C;&#x662F;&#x4E0B;&#x4E00;&#x4EE3; uni-app&#xFF0C;&#x662F;&#x4E00;&#x4E2A;&#x8DE8;&#x5E73;&#x53F0;&#x5E94;&#x7528;&#x5F00;&#x53D1;&#x5F15;&#x64CE;&#xFF0C;&#x73B0;&#x5DF2;&#x652F;&#x6301;&#x7F16;&#x8BD1;&#x6210; HarmonyOS Next &#x539F;&#x751F;&#x5E94;&#x7528;(4.61+)</p>
<p>uni-app x &#x5305;&#x62EC; uvue &#x6E32;&#x67D3;&#x5F15;&#x64CE;&#x3001;uts &#x8BED;&#x8A00;&#x3001;uni&#x7684;&#x7EC4;&#x4EF6;&#x548C;API&#x3001;&#x4EE5;&#x53CA;&#x6269;&#x5C55;&#x673A;&#x5236;&#x3002;</p>
<h3 id="uvue-&#x6E32;&#x67D3;&#x5F15;&#x64CE;"><a name="uvue-&#x6E32;&#x67D3;&#x5F15;&#x64CE;" class="plugin-anchor" href="#uvue-&#x6E32;&#x67D3;&#x5F15;&#x64CE;"><i class="fa fa-link" aria-hidden="true"></i></a>uvue &#x6E32;&#x67D3;&#x5F15;&#x64CE;</h3>
<p>&#x7528; vue3 &#x6846;&#x67B6;&#x5FEB;&#x901F;&#x7F16;&#x5199;&#x9875;&#x9762;&#xFF0C;&#x6700;&#x7EC8;&#x7F16;&#x8BD1;&#x4E3A;&#x4E0D;&#x540C;&#x5E73;&#x53F0;&#x7684;&#x3001;&#x9AD8;&#x6027;&#x80FD;&#x7684;&#x7EAF;&#x539F;&#x751F;&#x754C;&#x9762;&#x3002;</p>
<ol>
<li>&#x6A21;&#x677F;&#x5F0F;&#x5199;&#x6CD5;</li>
<li>&#x6570;&#x636E;&#x53CC;&#x5411;&#x7ED1;&#x5B9A;</li>
<li>&#x7EC4;&#x4EF6;&#x673A;&#x5236;</li>
</ol>
<p>&#x5728; HarmonyOS Next &#x5E73;&#x53F0;&#xFF0C;uni-app x &#x7684;&#x5DE5;&#x7A0B;&#x88AB;&#x6574;&#x4F53;&#x7F16;&#x8BD1;&#x4E3A; ArkTS + ArkUI &#x4EE3;&#x7801;&#xFF0C;&#x672C;&#x8D28;&#x4E0A;&#x662F;&#x6362;&#x4E86; vue &#x5199;&#x6CD5;&#x7684;&#x539F;&#x751F;&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x3002;</p>
<h3 id="uts-&#x8BED;&#x8A00;"><a name="uts-&#x8BED;&#x8A00;" class="plugin-anchor" href="#uts-&#x8BED;&#x8A00;"><i class="fa fa-link" aria-hidden="true"></i></a>uts &#x8BED;&#x8A00;</h3>
<p>uts &#x5168;&#x79F0; uni typescript&#xFF0C;&#x662F;&#x4E00;&#x95E8;&#x5F3A;&#x7C7B;&#x578B;&#x7684;&#x73B0;&#x4EE3;&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#x3002;&#x652F;&#x6301;&#x8DE8;&#x5E73;&#x53F0;&#xFF0C;&#x6700;&#x7EC8;&#x4F1A;&#x88AB;&#x7F16;&#x8BD1;&#x4E3A;&#x4E0D;&#x540C;&#x5E73;&#x53F0;&#x7684; native&#x8BED;&#x8A00;&#xFF0C;&#x5982;&#xFF1A;</p>
<ul>
<li><code>web/&#x5C0F;&#x7A0B;&#x5E8F;</code>&#x5E73;&#x53F0;&#xFF0C;&#x7F16;&#x8BD1;&#x4E3A;JavaScript</li>
<li><code>&#x9E3F;&#x8499;next</code>&#x5E73;&#x53F0;&#xFF0C;&#x7F16;&#x8BD1;&#x4E3A;ArkTS</li>
<li><code>Android</code>&#x5E73;&#x53F0;&#xFF0C;&#x7F16;&#x8BD1;&#x4E3A;Kotlin</li>
<li><code>iOS</code>&#x5E73;&#x53F0;&#xFF0C;&#x7F16;&#x8BD1;Swift</li>
</ul>
<p>uts &#x548C; ts &#x5F88;&#x76F8;&#x4F3C;&#xFF0C;&#x4F46;&#x4E3A;&#x4E86;&#x8DE8;&#x7AEF;&#xFF0C;uts &#x8FDB;&#x884C;&#x4E86;&#x4E00;&#x4E9B;&#x7EA6;&#x675F;&#x548C;&#x7279;&#x5B9A;&#x5E73;&#x53F0;&#x7684;&#x589E;&#x8865;&#x3002;&#x8BE6;&#x89C1; <a href="https://doc.dcloud.net.cn/uni-app-x/uts/index.html" target="_blank">uts&#x8BED;&#x8A00;&#x4ECB;&#x7ECD;</a></p>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x5728; ts &#x4E2D;&#xFF0C;&#x5E38;&#x901A;&#x8FC7; interface &#x6216; type &#x5B9A;&#x4E49;&#x5BF9;&#x8C61;&#x7C7B;&#x578B;&#xFF0C;&#x4F46;&#x5728; uts &#x4E2D;&#xFF0C;&#x9700;&#x4F7F;&#x7528; type &#x5B9A;&#x4E49;&#x5BF9;&#x8C61;&#x7C7B;&#x578B;&#x3002;&#x56E0;&#x4E3A; interface &#x5728; kotlin &#x548C; swift &#x4E2D;&#x6709;&#x5DEE;&#x5F02;&#x3002;</p>
<h3 id="uni-&#x7EC4;&#x4EF6;"><a name="uni-&#x7EC4;&#x4EF6;" class="plugin-anchor" href="#uni-&#x7EC4;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>uni &#x7EC4;&#x4EF6;</h3>
<p>ni-app x &#x7684;&#x7EC4;&#x4EF6;&#x4E3B;&#x8981;&#x5206;&#x4E09;&#x7C7B;&#xFF1A;</p>
<ul>
<li><code>&#x5185;&#x7F6E;&#x57FA;&#x7840;&#x7EC4;&#x4EF6;</code>&#xFF1A;&#x5982; view&#x3001;text&#x3001;image&#x3001;scroll-view&#x3001;input... &#x7B49;&#xFF0C;&#x8BE6;&#x89C1;<a href="https://doc.dcloud.net.cn/uni-app-x/component/index.html" target="_blank">&#x7EC4;&#x4EF6;&#x6E05;&#x5355;</a></li>
<li><code>&#x81EA;&#x5B9A;&#x4E49;&#x7EC4;&#x4EF6;</code>&#xFF1A;&#x5F00;&#x53D1;&#x8005;&#x81EA;&#x5DF1;&#x901A;&#x8FC7; vue &#x8BED;&#x6CD5;&#x5C01;&#x88C5;&#x7684;&#x7EC4;&#x4EF6;&#x3002;</li>
<li><code>uts&#x7EC4;&#x4EF6;&#x63D2;&#x4EF6;</code>&#xFF1A;&#x7B2C;&#x4E09;&#x65B9;&#x7EC4;&#x4EF6;&#xFF0C;&#x53EF;&#x901A;&#x8FC7;<a href="https://ext.dcloud.net.cn/" target="_blank">&#x63D2;&#x4EF6;&#x5E02;&#x573A;</a>&#x4E0B;&#x8F7D;&#x3002;</li>
</ul>
<h2 id="&#x51C6;&#x5907;&#x5DE5;&#x4F5C;"><a name="&#x51C6;&#x5907;&#x5DE5;&#x4F5C;" class="plugin-anchor" href="#&#x51C6;&#x5907;&#x5DE5;&#x4F5C;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x51C6;&#x5907;&#x5DE5;&#x4F5C;</h2>
<h3 id="&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x51C6;&#x5907;"><a name="&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x51C6;&#x5907;" class="plugin-anchor" href="#&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x51C6;&#x5907;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x51C6;&#x5907;</h3>
<ul>
<li>&#x4E0B;&#x8F7D;&#x5B89;&#x88C5; HBuilderX &#x7F16;&#x8F91;&#x5668;</li>
<li>&#x901A;&#x8FC7; HbuilderX &#x521B;&#x5EFA; uni-app x &#x9879;&#x76EE;</li>
</ul>
<h3 id="&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x7ED3;&#x6784;"><a name="&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x7ED3;&#x6784;" class="plugin-anchor" href="#&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x7ED3;&#x6784;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x7ED3;&#x6784;</h3>
<pre><code class="lang-shell">&#x251C;&#x2500;pages             &#x4E1A;&#x52A1;&#x9875;&#x9762;&#x6587;&#x4EF6;&#x5B58;&#x653E;&#x7684;&#x76EE;&#x5F55;
&#x2502;  &#x2514;&#x2500;index
&#x2502;     &#x2514;&#x2500;index.uvue  index&#x9875;&#x9762;
&#x251C;&#x2500;static            &#x5B58;&#x653E;&#x5E94;&#x7528;&#x5F15;&#x7528;&#x7684;&#x672C;&#x5730;&#x9759;&#x6001;&#x8D44;&#x6E90;&#x7684;&#x76EE;&#x5F55;(&#x6CE8;&#x610F;&#xFF1A;&#x9759;&#x6001;&#x8D44;&#x6E90;&#x53EA;&#x80FD;&#x5B58;&#x653E;&#x4E8E;&#x6B64;)
&#x251C;&#x2500;unpackage         &#x975E;&#x5DE5;&#x7A0B;&#x4EE3;&#x7801;&#xFF0C;&#x4E00;&#x822C;&#x5B58;&#x653E;&#x8FD0;&#x884C;&#x6216;&#x53D1;&#x884C;&#x7684;&#x7F16;&#x8BD1;&#x7ED3;&#x679C;
&#x251C;&#x2500;index.html        H5&#x7AEF;&#x9875;&#x9762;
&#x251C;&#x2500;main.uts          Vue&#x521D;&#x59CB;&#x5316;&#x5165;&#x53E3;&#x6587;&#x4EF6;
&#x251C;&#x2500;App.uvue          &#x5E94;&#x7528;&#x914D;&#x7F6E;&#xFF0C;&#x7528;&#x6765;&#x914D;&#x7F6E;App&#x5168;&#x5C40;&#x6837;&#x5F0F;&#x4EE5;&#x53CA;&#x76D1;&#x542C;
&#x251C;&#x2500;pages.json        &#x914D;&#x7F6E;&#x9875;&#x9762;&#x8DEF;&#x7531;&#x3001;&#x5BFC;&#x822A;&#x6761;&#x3001;&#x9009;&#x9879;&#x5361;&#x7B49;&#x9875;&#x9762;&#x7C7B;&#x4FE1;&#x606F;
&#x251C;&#x2500;manifest.json     &#x914D;&#x7F6E;&#x5E94;&#x7528;&#x540D;&#x79F0;&#x3001;appid&#x3001;logo&#x3001;&#x7248;&#x672C;&#x7B49;&#x6253;&#x5305;&#x4FE1;&#x606F;
&#x2514;&#x2500;uni.scss          uni-app&#x5185;&#x7F6E;&#x7684;&#x5E38;&#x7528;&#x6837;&#x5F0F;&#x53D8;&#x91CF;
</code></pre>
<h3 id="&#x7F16;&#x8BD1;&#x8FD0;&#x884C;"><a name="&#x7F16;&#x8BD1;&#x8FD0;&#x884C;" class="plugin-anchor" href="#&#x7F16;&#x8BD1;&#x8FD0;&#x884C;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7F16;&#x8BD1;&#x8FD0;&#x884C;</h3>
<ul>
<li>&#x5B89;&#x88C5; uni-app x &#x7F16;&#x8BD1;&#x5668;&#x63D2;&#x4EF6;</li>
<li>&#x7F16;&#x8BD1;&#x5E76;&#x8FD0;&#x884C;&#x9E3F;&#x8499;&#x539F;&#x751F;&#x5E94;&#x7528;</li>
</ul>
<h2 id="&#x9879;&#x76EE;&#x5B9E;&#x6218;"><a name="&#x9879;&#x76EE;&#x5B9E;&#x6218;" class="plugin-anchor" href="#&#x9879;&#x76EE;&#x5B9E;&#x6218;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9879;&#x76EE;&#x5B9E;&#x6218;</h2>
<h3 id="&#x6548;&#x679C;&#x9884;&#x89C8;"><a name="&#x6548;&#x679C;&#x9884;&#x89C8;" class="plugin-anchor" href="#&#x6548;&#x679C;&#x9884;&#x89C8;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6548;&#x679C;&#x9884;&#x89C8;</h3>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747583601447-8e506307-a923-48af-af25-b1d9b49f4a69.png" alt="&#x5E94;&#x7528;&#x56FE;&#x6807;"></p>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747583337685-abfd1a54-4c6a-4df7-8c48-22a2acad48d9.png" alt="&#x5E94;&#x7528;&#x8FD0;&#x884C;"></p>
<h3 id="&#x7D20;&#x6750;&#x4E0B;&#x8F7D;"><a name="&#x7D20;&#x6750;&#x4E0B;&#x8F7D;" class="plugin-anchor" href="#&#x7D20;&#x6750;&#x4E0B;&#x8F7D;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7D20;&#x6750;&#x4E0B;&#x8F7D;</h3>
<p><a href="https://www.yuque.com/attachments/yuque/0/2025/zip/2735051/1747623334802-848b63f4-0fd7-4578-ad63-0125237a305d.zip" target="_blank">&#x9879;&#x76EE;&#x56FE;&#x7247;&#x7D20;&#x6750;.zip</a></p>
<h3 id="&#x7ED3;&#x6784;&#x548C;&#x6837;&#x5F0F;"><a name="&#x7ED3;&#x6784;&#x548C;&#x6837;&#x5F0F;" class="plugin-anchor" href="#&#x7ED3;&#x6784;&#x548C;&#x6837;&#x5F0F;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7ED3;&#x6784;&#x548C;&#x6837;&#x5F0F;</h3>
<p>&#x4F7F;&#x7528; uni-app x &#x7EC4;&#x4EF6;&#x5E93;&#x5B9E;&#x73B0;&#x9879;&#x76EE;&#x57FA;&#x672C;&#x5E03;&#x5C40;&#x3002;</p>
<p>&#x5E03;&#x5C40;&#x6CE8;&#x610F;&#x70B9;&#xFF1A;</p>
<ul>
<li>view &#x7EC4;&#x4EF6;&#x9ED8;&#x8BA4;&#x662F; flex &#x6A21;&#x5F0F;&#x4E14;&#x65B9;&#x5411;&#x662F;&#x5782;&#x76F4; column</li>
<li>uni-app x &#x6837;&#x5F0F;&#x4E0D;&#x4F1A;&#x7EE7;&#x627F;&#xFF0C;&#x6587;&#x5B57;&#x9700;&#x8981;&#x7528; text &#x5305;&#x88F9;&#x5E76;&#x5355;&#x72EC;&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x6837;&#x5F0F;</li>
</ul>
<p>&#x53C2;&#x8003;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code class="lang-vue">&lt;template&gt;
  &lt;view class=&quot;container&quot;&gt;
    &lt;!-- &#x5361;&#x7247;&#x5BB9;&#x5668; --&gt;
    &lt;view class=&quot;card&quot;&gt;
      &lt;!-- &#x5934;&#x90E8;&#x6807;&#x9898; --&gt;
      &lt;view class=&quot;header&quot;&gt;
        &lt;text class=&quot;header-text&quot;&gt;&#x968F;&#x673A;&#x7B11;&#x8BDD;&lt;/text&gt;
      &lt;/view&gt;
      &lt;!-- &#x6EDA;&#x52A8;&#x5185;&#x5BB9;&#x533A; --&gt;
      &lt;scroll-view class=&quot;scroll-content&quot;&gt;
        &lt;text class=&quot;scroll-content-text&quot;&gt;&#x7B11;&#x8BDD;&#x52A0;&#x8F7D;&#x4E2D;...&lt;/text&gt;
      &lt;/scroll-view&gt;
      &lt;!-- &#x5E95;&#x90E8;&#x6309;&#x94AE; --&gt;
      &lt;view class=&quot;footer&quot;&gt;
        &lt;button class=&quot;footer-button&quot; @click=&quot;getJoke()&quot;&gt;&#x6362;&#x4E00;&#x4E2A;&lt;/button&gt;
      &lt;/view&gt;
    &lt;/view&gt;
  &lt;/view&gt;
&lt;/template&gt;

&lt;style lang=&quot;scss&quot;&gt;
  .container {
    /* &#x6CE8;&#x610F;&#x70B9;1: view &#x9ED8;&#x8BA4;&#x662F; flex&#xFF0C;&#x65B9;&#x5411;&#x662F; column */
    /* display: flex; */
    /* flex-direction: column;  */
    /* &#x6CE8;&#x610F;&#x70B9;2&#xFF1A;uni-app x &#x6837;&#x5F0F;&#x4E0D;&#x4F1A;&#x7EE7;&#x627F;&#xFF0C;&#x6587;&#x5B57;&#x9700;&#x8981;&#x7528; text &#x5305;&#x88F9;&#x5E76;&#x5355;&#x72EC;&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x6837;&#x5F0F; */
    /* font-size: 100rpx; */
    flex: 1;
    justify-content: center;
    align-items: center;
    background-color: #f6f6f6;
  }

  .card {
    width: 90%;
    border-radius: 20rpx;
    /* 1. &#x76D2;&#x5B50;&#x9634;&#x5F71;  X &#x8F74;&#x504F;&#x79FB;&#x91CF;&#x3001;Y &#x8F74;&#x504F;&#x79FB;&#x91CF;&#x3001;&#x6A21;&#x7CCA;&#x534A;&#x5F84; &#x548C; &#x989C;&#x8272; */
    box-shadow: 0 10rpx 30rpx #a7b3f9;
    /* iOS &#x7AEF;&#x5B58;&#x5728;&#x517C;&#x5BB9;&#x95EE;&#x9898;&#xFF0C;&#x9700;&#x8981;&#x4E3B;&#x52A8;&#x8BBE;&#x7F6E;&#x4E3A;&#x767D;&#x8272; */
    background-color: #fff;
  }

  .header {
    background-color: #1534f5;
    height: 110rpx;
    padding: 0 30rpx;
    /* iOS &#x7AEF;&#x5706;&#x89D2;&#x4E0D;&#x53D7;&#x7236;&#x7EA7;&#x7EA6;&#x675F;&#xFF0C;&#x9700;&#x8981;&#x4E3B;&#x52A8;&#x8BBE;&#x7F6E;&#x5706;&#x89D2; */
    border-radius: 20rpx 20rpx 0 0;

    /* 2. &#x4E3B;&#x8F74;&#x5782;&#x76F4;&#x65B9;&#x5411;&#x5C45;&#x4E2D; */
    justify-content: center;

    /* 3. style &#x6DFB;&#x52A0; lang=&quot;scss&quot; &#x540E;&#xFF0C;&#x652F;&#x6301;&#x7C7B;&#x540D;&#x5D4C;&#x5957; */
    /* 4. &#x6587;&#x5B57;&#x4E0D;&#x80FD;&#x7EE7;&#x627F;&#xFF0C;&#x9700;&#x8981;&#x7ED9; text &#x5B9A;&#x4E49;&#x7C7B;&#x540D;&#x4FEE;&#x6539; */
    .header-text {
      font-size: 28rpx;
      font-weight: 700;
      color: #fff;
    }
  }

  .scroll-content {
    padding: 40rpx 30rpx;
    /* 5. &#x6700;&#x5C0F;&#x9AD8;&#x5EA6; */
    min-height: 300rpx;

    .scroll-content-text {
      font-size: 30rpx;
      color: #3204ac;
      line-height: 45rpx;
    }
  }

  .footer {
    /* 6. &#x6C34;&#x5E73;&#x9760;&#x53F3;&#x5BF9;&#x9F50; */
    align-items: flex-end;
    padding-bottom: 20rpx;
    padding-right: 20rpx;

    .footer-button {
      background-color: #1534f5;
      color: #fff;
      font-size: 26rpx;
      border-radius: 50rpx;
      padding: 6rpx 30rpx;
    }
  }
&lt;/style&gt;
</code></pre>
<h3 id="&#x4E1A;&#x52A1;&#x903B;&#x8F91;"><a name="&#x4E1A;&#x52A1;&#x903B;&#x8F91;" class="plugin-anchor" href="#&#x4E1A;&#x52A1;&#x903B;&#x8F91;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E1A;&#x52A1;&#x903B;&#x8F91;</h3>
<ul>
<li>&#x7B11;&#x8BDD;&#x63A5;&#x53E3;&#xFF1A;<a href="https://hmajax.itheima.net/api/randjoke" target="_blank">https://hmajax.itheima.net/api/randjoke</a></li>
<li>&#x7F51;&#x7EDC;&#x8BF7;&#x6C42;API&#xFF1A;<a href="https://doc.dcloud.net.cn/uni-app-x/api/request.html" target="_blank">https://doc.dcloud.net.cn/uni-app-x/api/request.html</a></li>
<li>request&#x8054;&#x7F51;&#x6559;&#x7A0B;&#xFF1A;<a href="https://doc.dcloud.net.cn/uni-app-x/tutorial/request.html" target="_blank">https://doc.dcloud.net.cn/uni-app-x/tutorial/request.html</a></li>
</ul>
<p>&#x53C2;&#x8003;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code class="lang-vue">&lt;script setup lang=&quot;uts&quot;&gt;
  import { ref } from &apos;vue&apos;

  const jokeText = ref(&apos;&#x7B11;&#x8BDD;&#x52A0;&#x8F7D;&#x4E2D;...&apos;)

  // &#x6CE8;&#x610F;&#xFF1A;uni-app x &#x9700;&#x8981;&#x7528; type &#x5B9A;&#x4E49;&#x5BF9;&#x8C61;&#x7C7B;&#x578B;&#xFF0C;&#x7528; interface &#x5B58;&#x5728;&#x517C;&#x5BB9;&#x95EE;&#x9898;
  type ServiceData = {
    message : string
    data : string
  }

  function getJoke() {
    // &#x901A;&#x8FC7;&#x8303;&#x578B;&#x6307;&#x5B9A;&#x540E;&#x7AEF;&#x8FD4;&#x56DE;&#x7684;&#x6570;&#x636E;&#x7C7B;&#x578B;
    uni.request&lt;ServiceData&gt;({
      url: &apos;https://hmajax.itheima.net/api/randjoke&apos;,
      method: &apos;GET&apos;,
      success: (res) =&gt; {
        // &#x517C;&#x5BB9;&#x5B89;&#x5353;&#x7AEF;&#x7C7B;&#x578B;&#x7684;&#x5199;&#x6CD5;
        const jokeStr = res.data?.data
        if (jokeStr !== null) {
          jokeText.value = jokeStr
        }
      },
      fail: () =&gt; {
        jokeText.value = &apos;&#x6570;&#x636E;&#x83B7;&#x53D6;&#x5931;&#x8D25;&#xFF0C;&#x8BF7;&#x68C0;&#x67E5;&#x7F51;&#x7EDC;...&apos;
      }
    })
  }
&lt;/script&gt;

&lt;template&gt;
  &lt;view class=&quot;container&quot;&gt;
    &lt;view class=&quot;card&quot;&gt;
      &lt;view class=&quot;header&quot;&gt;
        &lt;text class=&quot;header-text&quot;&gt;&#x968F;&#x673A;&#x7B11;&#x8BDD;&lt;/text&gt;
      &lt;/view&gt;
      &lt;scroll-view class=&quot;scroll-content&quot;&gt;
        &lt;text class=&quot;scroll-content-text&quot;&gt;{{ jokeText }}&lt;/text&gt;
      &lt;/scroll-view&gt;
      &lt;view class=&quot;footer&quot;&gt;
        &lt;button class=&quot;footer-button&quot; @click=&quot;getJoke()&quot;&gt;&#x6362;&#x4E00;&#x4E2A;&lt;/button&gt;
      &lt;/view&gt;
    &lt;/view&gt;
  &lt;/view&gt;
&lt;/template&gt;
</code></pre>
<h3 id="&#x751F;&#x547D;&#x5468;&#x671F;"><a name="&#x751F;&#x547D;&#x5468;&#x671F;" class="plugin-anchor" href="#&#x751F;&#x547D;&#x5468;&#x671F;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x751F;&#x547D;&#x5468;&#x671F;</h3>
<h2 id="&#x9875;&#x9762;&#x751F;&#x547D;&#x5468;&#x671F;"><a name="&#x9875;&#x9762;&#x751F;&#x547D;&#x5468;&#x671F;" class="plugin-anchor" href="#&#x9875;&#x9762;&#x751F;&#x547D;&#x5468;&#x671F;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9875;&#x9762;&#x751F;&#x547D;&#x5468;&#x671F;</h2>
<p>&#x9875;&#x9762;&#x751F;&#x547D;&#x5468;&#x671F;&#xFF1A;<a href="https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle" target="_blank">https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle</a></p>
<table>
<thead>
<tr>
<th style="text-align:left">&#x7EC4;&#x5408;&#x5F0F;</th>
<th style="text-align:left">&#x9009;&#x9879;&#x5F0F;</th>
<th style="text-align:left">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">onLoad</td>
<td style="text-align:left">onLoad</td>
<td style="text-align:left">&#x751F;&#x547D;&#x5468;&#x671F;&#x56DE;&#x8C03; &#x76D1;&#x542C;&#x9875;&#x9762;&#x52A0;&#x8F7D; &#x9875;&#x9762;&#x52A0;&#x8F7D;&#x65F6;&#x89E6;&#x53D1;&#x3002;&#x4E00;&#x4E2A;&#x9875;&#x9762;&#x53EA;&#x4F1A;&#x8C03;&#x7528;&#x4E00;&#x6B21;&#xFF0C;&#x53EF;&#x4EE5;&#x5728; onLoad &#x7684;&#x53C2;&#x6570;&#x4E2D;&#x83B7;&#x53D6;&#x6253;&#x5F00;&#x5F53;&#x524D;&#x9875;&#x9762;&#x8DEF;&#x5F84;&#x4E2D;&#x7684;&#x53C2;&#x6570;&#x3002;</td>
</tr>
<tr>
<td style="text-align:left">onPageShow</td>
<td style="text-align:left">onShow</td>
<td style="text-align:left">&#x751F;&#x547D;&#x5468;&#x671F;&#x56DE;&#x8C03; &#x76D1;&#x542C;&#x9875;&#x9762;&#x663E;&#x793A; &#x9875;&#x9762;&#x663E;&#x793A;/&#x5207;&#x5165;&#x524D;&#x53F0;&#x65F6;&#x89E6;&#x53D1;&#x3002;</td>
</tr>
<tr>
<td style="text-align:left">onReady</td>
<td style="text-align:left">onReady</td>
<td style="text-align:left">&#x751F;&#x547D;&#x5468;&#x671F;&#x56DE;&#x8C03; &#x76D1;&#x542C;&#x9875;&#x9762;&#x521D;&#x6B21;&#x6E32;&#x67D3;&#x5B8C;&#x6210; &#x9875;&#x9762;&#x521D;&#x6B21;&#x6E32;&#x67D3;&#x5B8C;&#x6210;&#x65F6;&#x89E6;&#x53D1;&#x3002;&#x4E00;&#x4E2A;&#x9875;&#x9762;&#x53EA;&#x4F1A;&#x8C03;&#x7528;&#x4E00;&#x6B21;&#xFF0C;&#x4EE3;&#x8868;&#x9875;&#x9762;&#x5DF2;&#x7ECF;&#x51C6;&#x5907;&#x59A5;&#x5F53;&#xFF0C;&#x53EF;&#x4EE5;&#x548C;&#x89C6;&#x56FE;&#x5C42;&#x8FDB;&#x884C;&#x4EA4;&#x4E92;&#x3002;</td>
</tr>
<tr>
<td style="text-align:left">onPageHide</td>
<td style="text-align:left">onHide</td>
<td style="text-align:left">&#x751F;&#x547D;&#x5468;&#x671F;&#x56DE;&#x8C03; &#x76D1;&#x542C;&#x9875;&#x9762;&#x9690;&#x85CF; &#x9875;&#x9762;&#x9690;&#x85CF;/&#x5207;&#x5165;&#x540E;&#x53F0;&#x65F6;&#x89E6;&#x53D1;&#x3002; &#x5982; <code>navigateTo</code>&#x6216;&#x5E95;&#x90E8; <code>tab</code>&#x5207;&#x6362;&#x5230;&#x5176;&#x4ED6;&#x9875;&#x9762;&#xFF0C;&#x5E94;&#x7528;&#x5207;&#x5165;&#x540E;&#x53F0;&#x7B49;&#x3002;</td>
</tr>
<tr>
<td style="text-align:left">onUnload</td>
<td style="text-align:left">onUnload</td>
<td style="text-align:left">&#x751F;&#x547D;&#x5468;&#x671F;&#x56DE;&#x8C03; &#x76D1;&#x542C;&#x9875;&#x9762;&#x5378;&#x8F7D; &#x9875;&#x9762;&#x5378;&#x8F7D;&#x65F6;&#x89E6;&#x53D1;&#x3002;&#x5982; <code>redirectTo</code>&#x6216; <code>navigateBack</code>&#x5230;&#x5176;&#x4ED6;&#x9875;&#x9762;&#x65F6;&#x3002;</td>
</tr>
<tr>
<td style="text-align:left">onResize</td>
<td style="text-align:left">onResize</td>
<td style="text-align:left">&#x9875;&#x9762;&#x5C3A;&#x5BF8;&#x6539;&#x53D8;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td style="text-align:left">onBackPress</td>
<td style="text-align:left">onBackPress</td>
<td style="text-align:left">&#x76D1;&#x542C;&#x9875;&#x9762;&#x8FD4;&#x56DE;</td>
</tr>
</tbody>
</table>
<p>&#x53C2;&#x8003;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code class="lang-vue">&lt;script setup lang=&quot;uts&quot;&gt;
  // ...&#x524D;&#x9762;&#x4EE3;&#x7801;&#x7701;&#x7565;

  // &#x9875;&#x9762;&#x52A0;&#x8F7D;&#x65F6;
  onLoad(() =&gt; {
    // &#x83B7;&#x53D6;&#x7B11;&#x8BDD;
    getJoke()
  })
&lt;/script&gt;
</code></pre>
<h3 id="&#x9614;&#x6298;&#x53E0;&#x5C4F;&#x9002;&#x914D;"><a name="&#x9614;&#x6298;&#x53E0;&#x5C4F;&#x9002;&#x914D;" class="plugin-anchor" href="#&#x9614;&#x6298;&#x53E0;&#x5C4F;&#x9002;&#x914D;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9614;&#x6298;&#x53E0;&#x5C4F;&#x9002;&#x914D;</h3>
<ul>
<li>&#x83B7;&#x53D6;&#x7A97;&#x53E3;&#x4FE1;&#x606F;&#xFF1A;<a href="https://doc.dcloud.net.cn/uni-app-x/api/get-window-info.html" target="_blank">https://doc.dcloud.net.cn/uni-app-x/api/get-window-info.html</a></li>
</ul>
<p>&#x6CE8;&#x610F;&#x4E8B;&#x9879;&#xFF1A;</p>
<ul>
<li><code>vh</code> &#x5355;&#x4F4D;&#x53EA;&#x80FD;&#x7528;&#x4E8E; &#x5FAE;&#x4FE1;&#x5C0F;&#x7A0B;&#x5E8F;&#x7AEF; &#x548C; Web &#x7AEF;&#xFF0C;HarmonyOS&#x3001;Android&#x3001;iOS &#x7AEF;&#x5747;&#x4E0D;&#x652F;&#x6301;</li>
<li><code>max-height</code>&#x3001;<code>min-height</code> &#x7B49;&#x5C5E;&#x6027;&#x517C;&#x5BB9;&#x591A;&#x7AEF;&#x53EA;&#x80FD;&#x4F7F;&#x7528; &#x6570;&#x5B57; &#x6216; px &#x5355;&#x4F4D;</li>
</ul>
<p>&#x6548;&#x679C;&#x9884;&#x89C8;&#xFF1A;</p>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747627372804-0e873f2e-fc1c-4a79-afbf-02d2c8a9d620.png" alt="&#x9614;&#x6298;&#x53E0;&#x6548;&#x679C;"></p>
<p>&#x53C2;&#x8003;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code class="lang-vue">&lt;script setup lang=&quot;uts&quot;&gt;
  // ...&#x7701;&#x7565;&#x5176;&#x4ED6;&#x4EE3;&#x7801;

  // &#x540C;&#x6B65;&#x83B7;&#x53D6;&#x7A97;&#x53E3;&#x4FE1;&#x606F;&#xFF0C;&#x8FD4;&#x56DE;&#x7684;&#x5355;&#x4F4D; px
  const windowInfo = uni.getWindowInfo()
&lt;/script&gt;

&lt;template&gt;
  &lt;view class=&quot;container&quot;&gt;
    &lt;view class=&quot;card&quot;&gt;
      &lt;view class=&quot;header&quot;&gt;
        &lt;text class=&quot;header-text&quot;&gt;&#x968F;&#x673A;&#x7B11;&#x8BDD;&lt;/text&gt;
      &lt;/view&gt;
      &lt;!-- &#x6EDA;&#x52A8;&#x5185;&#x5BB9;&#x533A; --&gt;
      &lt;scroll-view class=&quot;scroll-content&quot; :style=&quot;{ maxHeight: windowInfo.screenHeight * 0.66 + &apos;px&apos; }&quot;&gt;
        &lt;text class=&quot;scroll-content-text&quot;&gt;{{ jokeText }}&lt;/text&gt;
      &lt;/scroll-view&gt;
      &lt;view class=&quot;footer&quot;&gt;
        &lt;button class=&quot;footer-button&quot; @click=&quot;getJoke()&quot;&gt;&#x6362;&#x4E00;&#x4E2A;&lt;/button&gt;
      &lt;/view&gt;
    &lt;/view&gt;
  &lt;/view&gt;
&lt;/template&gt;

&lt;style lang=&quot;scss&quot;&gt;

  .scroll-content {
    padding: 40rpx 30rpx;
    // 5. &#x6700;&#x5C0F;&#x9AD8;&#x5EA6;
    min-height: 300rpx;
    // vh &#x5355;&#x4F4D;&#x53EA;&#x80FD;&#x7528;&#x4E8E; &#x5FAE;&#x4FE1;&#x5C0F;&#x7A0B;&#x5E8F;&#x7AEF; &#x548C; Web &#x7AEF;&#xFF0C;max-height&#x3001;min-height &#x53EA;&#x652F;&#x6301; &#x6570;&#x5B57; &#x6216; px &#x5355;&#x4F4D;
    /* #ifdef MP-WEIXIN || WEB */
    max-height: 66vh; /* &#x6700;&#x5927;&#x9AD8;&#x5EA6;&#xFF0C;&#x5C4F;&#x5E55;&#x9AD8;&#x5EA6; 66% */
    /* #endif */
  }
&lt;/style&gt;
</code></pre>
<h2 id="&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x7B7E;&#x540D;&#x8BC1;&#x4E66;"><a name="&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x7B7E;&#x540D;&#x8BC1;&#x4E66;" class="plugin-anchor" href="#&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x7B7E;&#x540D;&#x8BC1;&#x4E66;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x7B7E;&#x540D;&#x8BC1;&#x4E66;</h2>
<ul>
<li>&#x9E3F;&#x8499;&#x8C03;&#x8BD5;&#x8BC1;&#x4E66;&#xFF0C;&#x7528;&#x4E8E;&#x771F;&#x673A;&#x8C03;&#x8BD5;</li>
<li>&#x9E3F;&#x8499;&#x53D1;&#x5E03;&#x8BC1;&#x4E66;&#xFF0C;&#x7528;&#x4E8E;&#x53D1;&#x5E03;&#x4E0A;&#x67B6;</li>
<li>AGC &#x5E73;&#x53F0;&#x521B;&#x5EFA;&#x9879;&#x76EE;&#x548C;&#x5E94;&#x7528;</li>
<li>HBuilderX &#x914D;&#x7F6E;&#x9E3F;&#x8499;&#x8C03;&#x8BD5;&#x8BC1;&#x4E66;</li>
</ul>
<h3 id="&#x9E3F;&#x8499;&#x7B7E;&#x540D;&#x8BC1;&#x4E66;"><a name="&#x9E3F;&#x8499;&#x7B7E;&#x540D;&#x8BC1;&#x4E66;" class="plugin-anchor" href="#&#x9E3F;&#x8499;&#x7B7E;&#x540D;&#x8BC1;&#x4E66;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9E3F;&#x8499;&#x7B7E;&#x540D;&#x8BC1;&#x4E66;</h3>
<table>
<thead>
<tr>
<th>DevEco Studio</th>
<th>Hbuilder</th>
<th>&#x5907;&#x6CE8;</th>
</tr>
</thead>
<tbody>
<tr>
<td>storeFile</td>
<td>&#x79C1;&#x94A5;&#x5E93;&#x6587;&#x4EF6;</td>
<td>.p12</td>
</tr>
<tr>
<td>storePassword</td>
<td>&#x79C1;&#x94A5;&#x5E93;&#x5BC6;&#x7801;</td>
<td>&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;</td>
</tr>
<tr>
<td>keyAlias</td>
<td>&#x79C1;&#x94A5;&#x522B;&#x540D;</td>
<td><strong>debugKey</strong> / <strong>releaseKey</strong></td>
</tr>
<tr>
<td>keyPassword</td>
<td>&#x79C1;&#x94A5;&#x5BC6;&#x7801;</td>
<td>&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;</td>
</tr>
<tr>
<td>profile</td>
<td>&#x7B7E;&#x540D;&#x63CF;&#x8FF0;&#x6587;&#x4EF6;</td>
<td>.p7b</td>
</tr>
<tr>
<td>certpath</td>
<td>&#x8BC1;&#x4E66;&#x6587;&#x4EF6;</td>
<td>.cer</td>
</tr>
</tbody>
</table>
<h3 id="agc-&#x5E73;&#x53F0;&#x521B;&#x5EFA;&#x9879;&#x76EE;&#x548C;&#x5E94;&#x7528;"><a name="agc-&#x5E73;&#x53F0;&#x521B;&#x5EFA;&#x9879;&#x76EE;&#x548C;&#x5E94;&#x7528;" class="plugin-anchor" href="#agc-&#x5E73;&#x53F0;&#x521B;&#x5EFA;&#x9879;&#x76EE;&#x548C;&#x5E94;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>AGC &#x5E73;&#x53F0;&#x521B;&#x5EFA;&#x9879;&#x76EE;&#x548C;&#x5E94;&#x7528;</h3>
<blockquote>
<p>&#x8FD9;&#x91CC;&#x6B65;&#x9AA4;&#x8F83;&#x591A;&#xFF0C;&#x8BF7;&#x8010;&#x5FC3;&#x68C0;&#x67E5;&#x6BCF;&#x4E2A;&#x6B65;&#x9AA4;&#xFF0C;&#x76F4;&#x5230;&#x5B8C;&#x6210;&#x5E94;&#x7528;&#x521B;&#x5EFA;&#x3002;</p>
</blockquote>
<ol>
<li><p>&#x767B;&#x5F55;<a href="https://developer.huawei.com/consumer/cn/service/josp/agc/index.html#/" target="_blank">AppGallery Connect</a>&#xFF0C;&#x70B9;&#x51FB;&quot;&#x5F00;&#x53D1;&#x4E0E;&#x670D;&#x52A1;&quot;&#x3002;</p>
</li>
<li><p>&#x5728;&#x9879;&#x76EE;&#x9875;&#x9762;&#x4E2D;&#x70B9;&#x51FB;&quot;&#x6DFB;&#x52A0;&#x9879;&#x76EE;&quot;&#x3002;
<img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747625924056-9f8e512e-e5af-48e7-9228-c5824e141dc9.png" alt="&#x6DFB;&#x52A0;&#x9879;&#x76EE;"></p>
</li>
<li><p>&#x5728;&quot;&#x521B;&#x5EFA;&#x9879;&#x76EE;&quot;&#x9875;&#x9762;&#x4E2D;&#x8F93;&#x5165;&#x9879;&#x76EE;&#x540D;&#x79F0;&#x540E;&#xFF0C;&#x70B9;&#x51FB;&quot;&#x5B8C;&#x6210;&quot;&#x3002;
<img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747625987419-63114670-3e71-48eb-bdc6-75fa62d5069c.png" alt="&#x521B;&#x5EFA;&#x9879;&#x76EE;"></p>
</li>
<li><p>&#x9009;&#x62E9;&quot;&#x8BC1;&#x4E66;&#x3001;APP ID&#x548C;Profile&quot;&#xFF0C;&#x5728;&#x5DE6;&#x4FA7;&#x5BFC;&#x822A;&#x680F;&#x9009;&#x62E9;&quot;APP ID&quot;&#xFF0C;&#x8FDB;&#x5165;&#x9875;&#x9762;&#x540E;&#xFF0C;&#x70B9;&#x51FB;&#x53F3;&#x4E0A;&#x89D2;&quot;&#x65B0;&#x5EFA;&quot;&#x3002;
<img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747626138360-36a1b393-6de1-4231-9c87-302fd7834073.png" alt="App ID"></p>
</li>
</ol>
<h3 id="&#x9E3F;&#x8499;&#x8C03;&#x8BD5;&#x8BC1;&#x4E66;"><a name="&#x9E3F;&#x8499;&#x8C03;&#x8BD5;&#x8BC1;&#x4E66;" class="plugin-anchor" href="#&#x9E3F;&#x8499;&#x8C03;&#x8BD5;&#x8BC1;&#x4E66;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9E3F;&#x8499;&#x8C03;&#x8BD5;&#x8BC1;&#x4E66;</h3>
<ol>
<li><p>&#x6253;&#x5F00; <code>manifest.json</code> &#x6587;&#x4EF6;&#xFF0C;&#x9009;&#x62E9;&quot;&#x9E3F;&#x8499;App&#x914D;&#x7F6E;&quot;&#x83DC;&#x5355;&#x540E;&#xFF0C;&#x70B9;&#x51FB;&#x8C03;&#x8BD5;&#x8BC1;&#x4E66;&#x7684;&quot;&#x914D;&#x7F6E;&quot;&#x6309;&#x94AE;&#x3002;
<img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747626465588-65d02a8d-2798-4a63-a13d-cee8922b7c0d.png" alt="&#x9E3F;&#x8499;App&#x914D;&#x7F6E;"></p>
</li>
<li><p>&#x5728;&#x914D;&#x7F6E;&#x8C03;&#x8BD5;&#x8BC1;&#x4E66;&#x4E2D;&#xFF0C;&#x68C0;&#x67E5;&quot;&#x5E94;&#x7528;&#x5305;&#x540D;&quot;&#xFF0C;&quot;&#x8FD0;&#x884C;&#x8BBE;&#x5907;&quot;&#x65E0;&#x8BEF;&#x540E;&#xFF0C;&#x70B9;&#x51FB; &quot;&#x81EA;&#x52A8;&#x7533;&#x8BF7;&#x8C03;&#x8BD5;&#x8BC1;&#x4E66;&quot; &#x6309;&#x94AE;&#x3002;</p>
</li>
</ol>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747625538405-5aea82e4-b93f-4046-bb97-83321a676f8b.png" alt="&#x914D;&#x7F6E;&#x8C03;&#x8BD5;&#x8BC1;&#x4E66;"></p>
<h3 id="&#x9E3F;&#x8499;&#x53D1;&#x5E03;&#x8BC1;&#x4E66;"><a name="&#x9E3F;&#x8499;&#x53D1;&#x5E03;&#x8BC1;&#x4E66;" class="plugin-anchor" href="#&#x9E3F;&#x8499;&#x53D1;&#x5E03;&#x8BC1;&#x4E66;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9E3F;&#x8499;&#x53D1;&#x5E03;&#x8BC1;&#x4E66;</h3>
<p>&#x9E3F;&#x8499;&#x53D1;&#x5E03;&#x8BC1;&#x4E66;&#x4E0D;&#x80FD;&#x81EA;&#x52A8;&#x751F;&#x6210;&#xFF0C;&#x6B65;&#x9AA4;&#x6D41;&#x7A0B;&#x8F83;&#x591A;&#xFF0C;&#x8BF7;&#x53C2;&#x8003;&#x89C6;&#x9891;&#x8BB2;&#x89E3;&#xFF0C;&#x8010;&#x5FC3;&#x68C0;&#x67E5;&#x6BCF;&#x4E2A;&#x6B65;&#x9AA4;&#xFF0C;&#x76F4;&#x5230;&#x5B8C;&#x6210;&#x914D;&#x7F6E;&#x3002;</p>
<ul>
<li>&#x53D1;&#x5E03;&#x8BC1;&#x4E66;&#x6587;&#x4EF6;</li>
</ul>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747626842806-b7770b13-5a6e-4108-b7be-1fc9f40428d0.png" alt="&#x53D1;&#x5E03;&#x8BC1;&#x4E66;&#x6587;&#x4EF6;"></p>
<ul>
<li>&#x914D;&#x7F6E;&#x53D1;&#x5E03;&#x8BC1;&#x4E66;</li>
</ul>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747627224491-124714a3-912d-4cba-81b4-70b5ff8aaf49.png" alt="&#x53D1;&#x5E03;&#x8BC1;&#x4E66;"></p>
<ul>
<li>&#x53D1;&#x5E03;&#x8BC1;&#x4E66;&#x8BF4;&#x660E;</li>
</ul>
<p>&#x7B7E;&#x540D;&#x63CF;&#x8FF0;&#x6587;&#x4EF6; <code>.p7b</code> &#x56E0;&#x5305;&#x542B;&#x5305;&#x540D;&#x4FE1;&#x606F;&#x4E0D;&#x80FD;&#x590D;&#x7528;&#xFF0C;&#x5176;&#x4ED6;&#x8BC1;&#x4E66;&#x6587;&#x4EF6;&#x5747;&#x53EF;&#x5728;&#x591A;&#x4E2A;&#x9879;&#x76EE;&#x590D;&#x7528;&#xFF0C;&#x8BF7;&#x7262;&#x8BB0;&#x79C1;&#x94A5;&#x522B;&#x540D;&#x548C;&#x5BC6;&#x7801;&#x3002;</p>
<table>
<thead>
<tr>
<th>DevEco Studio</th>
<th>Hbuilder</th>
<th>&#x5907;&#x6CE8;</th>
</tr>
</thead>
<tbody>
<tr>
<td>storeFile</td>
<td>&#x79C1;&#x94A5;&#x5E93;&#x6587;&#x4EF6;</td>
<td>.p12</td>
</tr>
<tr>
<td>storePassword</td>
<td>&#x79C1;&#x94A5;&#x5E93;&#x5BC6;&#x7801;</td>
<td>&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;</td>
</tr>
<tr>
<td>keyAlias</td>
<td>&#x79C1;&#x94A5;&#x522B;&#x540D;</td>
<td><strong>debugKey</strong> / <strong>releaseKey</strong></td>
</tr>
<tr>
<td>keyPassword</td>
<td>&#x79C1;&#x94A5;&#x5BC6;&#x7801;</td>
<td>&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;&#xB7;</td>
</tr>
<tr>
<td>profile</td>
<td>&#x7B7E;&#x540D;&#x63CF;&#x8FF0;&#x6587;&#x4EF6;</td>
<td>.p7b</td>
</tr>
<tr>
<td>certpath</td>
<td>&#x8BC1;&#x4E66;&#x6587;&#x4EF6;</td>
<td>.cer</td>
</tr>
</tbody>
</table>
<h2 id="&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x6253;&#x5305;&#x548C;&#x53D1;&#x884C;"><a name="&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x6253;&#x5305;&#x548C;&#x53D1;&#x884C;" class="plugin-anchor" href="#&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x6253;&#x5305;&#x548C;&#x53D1;&#x884C;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x6253;&#x5305;&#x548C;&#x53D1;&#x884C;</h2>
<h3 id="&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x672C;&#x5730;&#x6253;&#x5305;"><a name="&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x672C;&#x5730;&#x6253;&#x5305;" class="plugin-anchor" href="#&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x672C;&#x5730;&#x6253;&#x5305;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x672C;&#x5730;&#x6253;&#x5305;</h3>
<p>&#x5728;<strong>&#x914D;&#x7F6E;&#x9E3F;&#x8499;&#x53D1;&#x5E03;&#x8BC1;&#x4E66;</strong>&#x540E;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x8FDB;&#x884C;<strong>&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x672C;&#x5730;&#x6253;&#x5305;</strong>&#xFF0C;&#x6700;&#x7EC8;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x643A;&#x5E26;&#x7B7E;&#x540D;&#x4FE1;&#x606F;&#x7684; <code>.app</code> &#x5B89;&#x88C5;&#x5305;&#x3002;</p>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747627571922-d46d7d45-a362-4925-9206-9236320381da.png" alt="&#x672C;&#x5730;&#x6253;&#x5305;"></p>
<h3 id="&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x4E0A;&#x67B6;"><a name="&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x4E0A;&#x67B6;" class="plugin-anchor" href="#&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x4E0A;&#x67B6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x4E0A;&#x67B6;</h3>
<p>&#x5728; AGC &#x5E73;&#x53F0;&#x4E0A;&#x4F20;&#x643A;&#x5E26;&#x7B7E;&#x540D;&#x4FE1;&#x606F;&#x7684; <code>.app</code> &#x5B89;&#x88C5;&#x5305;&#xFF0C;&#x8BF7;&#x53C2;&#x52A0;&#x89C6;&#x9891;&#x8BB2;&#x89E3;&#x6216;&#x8005;&#x67E5;&#x770B;&#x5B98;&#x65B9;&#x6587;&#x6863;&#xFF1A;<a href="https://developer.huawei.com/consumer/cn/doc/app/agc-help-harmonyos-releaseapp-0000001914554900" target="_blank">&#x53D1;&#x5E03;HarmonyOS&#x5E94;&#x7528;&#xFF08;HarmonyOS NEXT&#xFF09;</a></p>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747628318327-606b7725-2c10-40dc-a6b5-536ab3785477.png" alt="&#x4E0A;&#x4F20;app&#x5305;"></p>
<h3 id="&#x5B89;&#x5353;&#x5E94;&#x7528;&#x4E91;&#x6253;&#x5305;&#x8865;&#x5145;"><a name="&#x5B89;&#x5353;&#x5E94;&#x7528;&#x4E91;&#x6253;&#x5305;&#x8865;&#x5145;" class="plugin-anchor" href="#&#x5B89;&#x5353;&#x5E94;&#x7528;&#x4E91;&#x6253;&#x5305;&#x8865;&#x5145;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5B89;&#x5353;&#x5E94;&#x7528;&#x4E91;&#x6253;&#x5305;(&#x8865;&#x5145;)</h3>
<p>&#x5B89;&#x5353;&#x5E94;&#x7528;&#x53EF;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x4E91;&#x8BC1;&#x4E66;&#x5B8C;&#x6210;&#x6253;&#x5305;&#xFF0C;&#x6700;&#x7EC8;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x643A;&#x5E26;&#x7B7E;&#x540D;&#x4FE1;&#x606F;&#x7684; <code>.apk</code> &#x5B89;&#x88C5;&#x5305;&#x3002;</p>
<p>&#x7528;&#x6237;&#x53EF;&#x628A; <code>apk</code> &#x4E0A;&#x67B6;&#x5230;&#x5404;&#x4E2A;&#x5B89;&#x5353;&#x5E94;&#x7528;&#x5546;&#x5E97;&#x3002;</p>
<p><img src="https://cdn.nlark.com/yuque/0/2025/png/2735051/1747627668173-0a713e6b-8831-4f3b-9b31-fe3e965efcff.png" alt="&#x4E91;&#x6253;&#x5305;"></p>
<footer class="page-footer"><span class="copyright">powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2025-05-22 19:41:31
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                </div>
                <script src="https://my.openwrite.cn/js/readmore.js"></script>
                <script>
                    var enablePlugin = false;
                    var allowDomain = "localhost";
                    if(allowDomain){
                        var currentDomain = location.hostname;
                        if ($.isArray(allowDomain)) {
                            $.each(allowDomain, function(index, item) {
                                if (currentDomain == item) {
                                    enablePlugin = true;
                                    return false;
                                }
                            });
                        }else{
                           if (currentDomain == allowDomain) {
                                enablePlugin = true;
                            }
                        }
                    }else{
                        enablePlugin = true;
                    }
                    
                    if(enablePlugin){
                        var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
                        if (!isMobile) {
                            var btw = new BTWPlugin();
                            btw.init({"allowDomain":"localhost","blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果","id":"vip-container"});
                        }
                    }
                </script> 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
          <div class="book-footer">
            
            <div class="donate">
              <div></div>
              <button class="donate-btn" onclick="showModal()">赞赏</button>
            </div>
             
            <div class="copyright"></div>
            
          </div>
          
        </div>
      </div>
      
    </div>

        
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"4.1 uni-app x 跨平台实战入门：从 0 到 1 开发 HarmonyOS 5 鸿蒙原生应用","level":"1.4.1","depth":2,"next":{"title":"5.二十四节气","level":"1.5","depth":1,"ref":"","articles":[{"title":"5.1二十四节气实战案例","level":"1.5.1","depth":2,"ref":"","articles":[]}]},"previous":{"title":"4.随机笑话-实战案例","level":"1.4","depth":1,"ref":"","articles":[{"title":"4.1 uni-app x 跨平台实战入门：从 0 到 1 开发 HarmonyOS 5 鸿蒙原生应用","level":"1.4.1","depth":2,"path":"chapter4/1.uni-app_x跨平台实战入门：从0到1开发HarmonyOS_5鸿蒙原生应用.md","ref":"./chapter4/1.uni-app_x跨平台实战入门：从0到1开发HarmonyOS_5鸿蒙原生应用.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["github-buttons@2.1.0","edit-link","splitter","tbfed-pagefooter","expandable-chapters","chapter-fold","back-to-top-button","code","pageview-count","popup","search-plus","-lunr","-search","splitter","-sharing","sharing-plus","theme-lou","mind-maps","emphasize","anchors","changyan","readmore","livereload","ace","livereload"],"root":".","styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"pluginsConfig":{"expandable-chapters":{}},"emphasize":{},"ace":{},"livereload":{},"splitter":{},"readmore":{"allowDomain":"localhost","blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果"},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link",".summary .divider"],"color":"#FF4848","book-anchor-title":"本章目录","copyright":{"author":"vx:nut_pie"},"forbidCopy":true,"logo":"assets/avatar.png","book-summary-title":"文章目录","search-placeholder":"输入关键字搜索","copyrightLogo":"assets/copyright.png","favicon":"assets/avatar.png","appleTouchIconPrecomposed152":"assets/avatar.png"},"changyan":{"appid":"cyvHoCPAs","conf":"0440cfc4168ba95d73cfc52dd4d5c60b"},"fontsettings":{"theme":"white","family":"sans","size":2},"mind-maps":{},"highlight":{},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"repo":"ITmxs/gitbook","types":["star","watch","fork"],"size":"small"},"sharing":{"qq":false,"all":["qq","qzone","whatsapp","douban","facebook","google","instapaper","linkedin","messenger","twitter","weibo"],"douban":false,"facebook":false,"weibo":false,"twitter":false,"pocket":false,"google":false,"qzone":false},"edit-link":{"label":"编辑此页","base":"https://github.com/ITmxs/gitbook/edit/master/"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"坚果派","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://www.nutpi.net/","name":"坚果派官网"},{"target":"_blank","url":"https://www.arkui.club/","name":"ArkUI实战"},{"target":"_blank","url":"https://space.bilibili.com/480883651","name":"元服务开发实践"},{"target":"_blank","url":"https://gitcode.com/nutpi","name":"OpenHarmony应用开发"}],"footer":{"donate":{"wechat":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","message":"随意打赏，但不要超过一顿早餐钱 💕","wxpay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","alipay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png","nickname":"breeze","button":"打赏","wechatText":"微信","alipayText":"支付宝","title":"『赠人玫瑰 🌹 手有余香 』","avatar":"http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"},"copyright":true}}},"title":"uniapp/uniapp-x for Harmony教程","language":"zh-hans","gitbook":"*","description":"uniapp/uniapp-x for Harmony电子书教程"},"file":{"path":"chapter4/1.uni-app_x跨平台实战入门：从0到1开发HarmonyOS_5鸿蒙原生应用.md","mtime":"2025-05-22T11:41:31.828Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2025-06-30T01:19:14.211Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mind-maps/mindmaps.dist.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-changyan/changyan.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

